<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk">
           
 <t:saveState value="#{consultaBean}"/>
  <t:saveState value="#{exameBean.exame}"/>
<head>
<title>Cadastro de Exame</title>
</head>

<body>
	<ui:composition template="/WEB-INF/template/templateMaster.xhtml">
		<ui:define name="conteudo">
			<h1>Cadastramento de Exame</h1>
			<h:form id="cadastro">
				<h:messages />
				<h:inputHidden value="#{exameBean.exame.idExame}" />
				<h:panelGrid columns="2">

					<h:outputLabel value="Nome: " for="nome" />
					<h:inputText id="nome" label="Nome" value="#{exameBean.exame.nome}"
						size="20" required="true" />

					<h:outputLabel value="Resultado: " for="resultado" />
					<h:inputText id="resultado" label="Resultado:"
						value="#{exameBean.exame.resultado}" size="50" maxlength="20"
						required="false" />

					<h:outputLabel value="Data do exame: " for="data" />
					<h:inputText id="data" label="Data do exame:"
						value="#{exameBean.exame.dataExame}" size="15" maxlength="15"
						redisplay="true">
						<f:convertDateTime pattern="dd/MM/yyyy" />
					</h:inputText>
				</h:panelGrid>

				<h:commandButton action="#{exameBean.adicionar}" value="Salvar" immediate="true">
				</h:commandButton>
			</h:form>
		</ui:define>
	</ui:composition>
</body>
</html>